import request from '@/utils/request.js'

export const getOrder = (userId, itemsId, mode, quantity) => {
  return request.post('/pay/getOrder', {
    userId,
    itemsId,
    mode,
    quantity
  })
}

export const submit = (orderReturnItem, payMethod, msg, cartIds) => {
  return request.post('/pay/submit', {
    orderReturnItem, payMethod, msg, cartIds
  })
}

export const goPay = (password, orderId) => {
  return request.post('/pay/goPay', {
    password, orderId
  })
}
